package org.jeecg.modules.xxgx.common.enums;

/**
 * 红字红冲状态枚举类型
 */
public enum HzhcztEnum {
    zt01 ("无需确认","01"),
    zt02 ("销方录入待购方确认","02"),
    zt03 ("购方录入待销方确认","03"),
    zt04 ("购销双方已确认","04"),
    zt05 ("作废(销方录入购方否认) ","05"),
    zt06 ("作废(购方录入销方否认) ","06"),
    zt07 ("作废(超 72 小时未确认) ","07"),
    zt08 ("作废(发起方已撤销)","08"),
    zt09 ("作废(确认后撤销)","09"),
    zt10 ("作废(异常凭证)","10"),
    ;
    private final String desc;//描述
    private final String value;//值
    HzhcztEnum(String desc, String value) {
        this.desc = desc;
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public String getValue() {
        return value;
    }

    public static String getDescByValue(String value) {
        for(HzhcztEnum hzhcztEnum : HzhcztEnum.values()){
            if(hzhcztEnum.getValue().equalsIgnoreCase(value)){
                return hzhcztEnum.getDesc();
            }
        }
        return null;
    }
}
